package com.itfreer.utils.volley;

import com.itfreer.utils.config.ConfigManager;

import java.util.HashMap;

public class HeaderUtils {
    public static HashMap<String,String> getHeader(){
        if(ConfigManager.getConfig("jwt")!=null){
            HashMap<String,String> header = new HashMap<String,String>();
            if(ConfigManager.getConfig("jwt")!=null && !ConfigManager.getConfig("jwt").toString().trim().equals("")){
                header.put("jwt", ConfigManager.getConfig("jwt").toString());
            }
            header.put("referer", "android");
            header.put("user-agent", "webkit");
            return header;
        } else {
            return null;
        }
    }
}
